<%@ page import="java.util.Vector" %>
<%--
  User: liushiyin
  Date: 2017/11/15
  Time: 15:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <script type="text/javascript" src="JQuery/jquery-3.2.1.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/demo.css">
    <link rel="stylesheet" type="text/css" href="css/iziModal.css">
    <link rel="shortcut icon" href="res/icon.png"/>
    <link href="css/head.css" rel="stylesheet" type="text/css">
    <link href="css/container.css" rel="stylesheet" type="text/css">
    <title>留天下主页</title>
  </head>
  <%--<script src="js/particle.js">
  </script>--%>
  <link rel="stylesheet" href="css/crowd.css">
  <link rel="stylesheet" href="css/oscblog.css">
  <body>
  <%
    Vector<String> list1=(Vector<String>) request.getAttribute("list1");
    Vector<String> list2=(Vector<String>) request.getAttribute("list2");
    if(list1==null||list2==null) {
      request.getRequestDispatcher("/refreshindex").forward(request, response);
    }else {
      out.print("<div style='background-color: transparent;" +
              "position: absolute;\n" +
              "    top: 40%;" +
              "left:10px;" +
              "width=20%;" +
              "height=30px;" +
              " z-index: 99;" +
              "font-size: larger;\n" +
              "    color: #1eff0d;" +
              "margin-left: 20px;'><a href='https://oschina.net/'>开源中国</a>最新精彩博文</div>");
      out.print("<div class='oscblog'>");
      for (int i=0;i<list1.size();++i) {
        if (list1.get(i)!=null) {
          out.print("<a href='"+list1.get(i)+"'>"+list2.get(i)+"</a><hr>");
        }
      }
      out.print("</div>");
    }
  %>
  <%@include file="head.jsp"%>
  <%--<div id="jsi-particle-container" class="container"></div>--%>
  <header>
    <div class="bg">
      <canvas id="display"></canvas>
      <div id="blachole"></div>
    </div>
  </header>
  <script type="text/javascript" src="js/constellation.js"></script>
  </body>
</html>
